package com.jgp.security.secmodel;

import com.jgp.common.persistence.TreeModel;
import com.jgp.common.pojo.TreeBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/6
 */
@Entity
@Table(name = "sec_institution")
public class SecInstitution extends TreeModel {
    
    private static final long serialVersionUID = 7595997205566855309L;
    @Column(name = "icon",length = 30)
    private String icon;
    
    @Column(name = "name",length = 100)
    private String name;
    
    @Column(name = "remark")
    private String remark;
    
    @Column(name = "code",length = 100)
    private String code;
    
    @Column(name = "group_type",length = 32)
    private String groupType;
    
    @Column(name="special_type_icon")
    private String specialTypeIcon;
    
    @Column(name="special_type_code")
    private String specialTypeCode;
    
    @Column(name="lng")
    private Double lng;
    
    @Column(name="lat")
    private Double lat;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    public String getSpecialTypeIcon() {
        return specialTypeIcon;
    }
    
    public void setSpecialTypeIcon(String specialTypeIcon) {
        this.specialTypeIcon = specialTypeIcon;
    }
    
    public String getSpecialTypeCode() {
        return specialTypeCode;
    }
    
    public void setSpecialTypeCode(String specialTypeCode) {
        this.specialTypeCode = specialTypeCode;
    }
    
    public String getGroupType() {
        return groupType;
    }
    
    public void setGroupType(String groupType) {
        this.groupType = groupType;
    }
    
    public Double getLng() {
        return lng;
    }
    
    public void setLng(Double lng) {
        this.lng = lng;
    }
    
    public Double getLat() {
        return lat;
    }
    
    public void setLat(Double lat) {
        this.lat = lat;
    }
    
    @Override
    public TreeBean mapping() {
        TreeBean bean = super.mapping();
        bean.setTitle(getName());
        bean.setIcon(getIcon());
        bean.setTip(getRemark());
        return bean;
    }
}
